package com.xsf.jieyou.provider.service;

import com.xsf.jieyou.provider.api.TbAlbumService;
import com.xsf.jieyou.provider.domain.TbAlbum;
import com.xsf.jieyou.provider.mapper.TbAlbumMapper;
import org.apache.dubbo.config.annotation.Service;

import javax.annotation.Resource;

/**
 * @author xsfno1
 * @version v1.0.0
 * @date 2020/3/20 17:04
 * @see com.xsf.jieyou.provider.service
 **/
@Service(version = "1.0.0")
public class TbAlbumServiceImpl implements TbAlbumService {
    @Resource
    private TbAlbumMapper tbAlbumMapper;

    @Override
    public Integer insertTbAlbumService(TbAlbum tbAlbum) {
        return this.tbAlbumMapper.insert(tbAlbum);
    }

    @Override
    public TbAlbum selectTbAlbumService(Long albumId) {
        return this.tbAlbumMapper.selectByPrimaryKey(albumId);
    }
}
